package edu.ynmd.cms.Dao;

import edu.ynmd.cms.model.Classroom;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import java.util.List;

public interface ClassroomDao extends JpaRepository<Classroom,String> {
    @Query("select  r from Classroom r where r.id=:classroomid")
    public List<Classroom> getCourseListByClassroom(@Param("classroomid")String classroom);
}
